package jonggyuni.basic;

public class J08_Num59 {

	public static void main(String[] args) {
		
		int values[] = new int[10];
		int sum=0;
		
		for(int i=0; i<values.length; i++){
			sum = sum +values[i];
		}
		System.out.println(sum+ " ");

		for(int i : values){
			sum = sum + i;
		}
		System.out.println(sum+ " ");
	
		
		for(int i=1; i<values.length; i++){
			sum = sum+values[i];
		}
		System.out.println(sum+ " ");
		
/*		for(int i : values){
			i = 1;
			
			
		}*/

	}

}
